package com.javafactroy.kunlong.data.entity;

import lombok.Data;
import com.javafactroy.kunlong.base.dto.TQueryParam;
import com.javafactroy.kunlong.client.feign.dto.PageInfoDto;
import javax.persistence.Column;
import javax.persistence.*;
//import javax.persistence.Id;
import lombok.experimental.Accessors;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import com.alibaba.excel.annotation.write.style.ColumnWidth;

import io.swagger.annotations.ApiModelProperty;
/**
*  @author raymond.lei@163.com
*  @date   2023-12-04 14:10:20
*  @file   QueryConditionChildApiEntity.java
*  @company com.javafactroy.kunlong
*
*/
@Data
@Table(name="query_condition_child")
@ApiModel("")
@Accessors(chain = true)
@ExcelIgnoreUnannotated
@ColumnWidth(18)
public class QueryConditionChildApiEntity   extends PageInfoDto {
    private static final long serialVersionUID = 1L; //一会就说这个是做什么的

    public final static String pkeyField = "id";
    public final static String pkeyProp  = "id";
    @Data
    public static class QueryConditionChildQueryParam extends TQueryParam<QueryConditionChildApiEntity> {
        public QueryConditionChildQueryParam() {
            param = new QueryConditionChildApiEntity();
        }
    }

    public Boolean checkInsertFlag() {
        return id == null;
    }

    		// id dataType:bigint
		@ApiModelProperty(name="")
		@ExcelProperty("id")
		@Column(name="id")
		@Id
		@GeneratedValue(strategy = GenerationType.IDENTITY,generator = "Mysql")
		protected Long  id;

		// left_field dataType:varchar
		@ApiModelProperty(name="")
		@ExcelProperty("left_field")
		@Column(name="left_field")
		protected String  leftField;

		// right_field dataType:varchar
		@ApiModelProperty(name="")
		@ExcelProperty("right_field")
		@Column(name="right_field")
		protected String  rightField;

		// master_id dataType:bigint
		@ApiModelProperty(name="")
		@ExcelProperty("master_id")
		@Column(name="master_id")
		protected Long  masterId;



}